import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  linkExactActiveClass:'active',
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path:'/',
      redirect:'/commoDity',
      component: () => import ("./views/herde.vue"),
      children:[
        {
          path:'commoDity',
          component: () => import ("./components/commoDity/commoDity.vue")
        },
        {
          path:'evaluate',
          component: () => import ("./components/evaluate/evaluate.vue")
        },
        {
          path:'merchant',
          component: () => import ("./components/merchant/merchant.vue")
        }
      ]
    }
  ]
})
